package com.bit.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/hello")
public class HelloController {
//    @RequestMapping(value = "/world", method = {RequestMethod.POST})
//    @RequestMapping(value = "/world", method = {RequestMethod.GET})
    @GetMapping("/world")
    public String hello() {
        System.out.println("hello spring boot!");
        return "hello, Spring boot!";
    }

//    @RequestMapping(value = "world")
//    public String hello2() {
//        System.out.println("hello, spring boot!");
//        return "hello, spring boot!";
//    }
}
